package com.heima.admin.controller;

import com.heima.admin.service.IAuditService;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/text")
public class TextController {

    @Autowired
    private IAuditService iAuditService;

    @GetMapping("/{id}")
    @ApiOperation(value = "测试", notes = "author:mcm")
    public String text(@PathVariable Integer id){
        iAuditService.auditById(id);
        return "OK";
    }

    @Test
    public void text2(){
        Integer a = 127 , b = 127;

        Integer c = 128 , d = 128;

        System.out.println(a.equals(b));
        System.out.println(c.equals(d));


        String e = "1";
        String f = "1";
        System.out.println(e==f);

        String g = new String("o");
    }
}
